﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Tracking.Data.Model;

namespace Tracking.Web.Models
{
    public class ShipmentUIModel
    {
        [Required(ErrorMessage="tracking number is required")]
        public string TrackingNumber { get; set; }

        public int Id { get; set; }

        public byte State { get; set; }

        public List<SelectListItem> StateValues { get; set; }

    }

    public class ShipmentUIDeleteModel
    {
        public string TrackingNumber { get; set; }

        public int Id { get; set; }

        public string State { get; set; }
    }

    public class ShipmentUISearchModel
    {
        public string TrackingNumber { get; set; }

        public int Id { get; set; }

        public string State { get; set; }

        public string StartTimestamp { get; set; }
        public string LastUpdateTimestamp { get; set; }
    }
}